﻿// l2_quoi_act1.sqf
if (l2_quoi_act1 < 0) then 
{   
    l2_quoi_act1 = 5;
};

if (l2_quoi_act1 > 5) then 
{
    l2_quoi_act1 = 0;
};

// On décline les possibilités
if (l2_quoi_act1 == 0) then 
{
    nom_l2_quoi_act1 = "Present" ;
    var_l2_quoi_act1 = "PRESENT" ;
};
	
if (l2_quoi_act1 == 1) then 
{
    nom_l2_quoi_act1 = "Not pres." ;
    var_l2_quoi_act1 = "NOT PRESENT" ;
};
		
if (l2_quoi_act1 == 2) then 
{
    nom_l2_quoi_act1 = "W Detec" ;
    var_l2_quoi_act1 = "WEST D" ;
};

if (l2_quoi_act1 == 3) then 
{
    nom_l2_quoi_act1 = "E Detec" ;
    var_l2_quoi_act1 = "EAST D" ;
};

if (l2_quoi_act1 == 4) then 
{
    nom_l2_quoi_act1 = "R Detec" ;
    var_l2_quoi_act1 = "GUER D" ;
};
		
if (l2_quoi_act1 == 5) then 
{
    nom_l2_quoi_act1 = "Civ D" ;
    var_l2_quoi_act1 = "CIV D" ;
};

ctrlSetText [10268,nom_l2_quoi_act1]; 

if (true) exitWith {};